<?php

function __autoload($class_name) {
	if (class_exists($class_name)) { return true; }
	$file = APPLICATION_PATH.'models'.DS.$class_name.'.php';
	if (!file_exists($file)) { exit('framework functions: Error creating class object: class file does not exist ' . $file); }
	require($file);
	return true;
}

//i dont think im using this
function get_public_class_vars() { return get_class_vars( __CLASS__ ); }

function get_public_object_vars($obj) { return get_object_vars($obj); }

function isset_in_array($needle, $haystack) { return (isset($haystack) && in_array($needle, $haystack)); }

?>